/*
* Gantt
* Author: Brant Liu
* Version: 1.0.3
*/

/* ------------------------------------------------------------
    Layout
------------------------------------------------------------ */
.gantt-layout,
.gantt-wrapper,
.gantt-grid,
.gantt-resizer,
.gantt-task,
.gantt-row,
.gantt-cell {
    position: relative;
}

.gantt-wrapper,
.gantt-grid,
.gantt-resizer,
.gantt-task {
    height: 100%;
}

.gantt-grid,
.gantt-resizer,
.gantt-task {
    float: left;
}

.gantt-grid,
.gantt-task {
    overflow: hidden;
}

.gantt-grid > .gantt-content,
.gantt-task > .gantt-content {
    white-space: nowrap;
}

.gantt-grid > .gantt-content .gantt-header,
.gantt-grid > .gantt-content .gantt-data,
.gantt-task > .gantt-content .gantt-header,
.gantt-task > .gantt-content .gantt-data {
    overflow: hidden;
    font-size: 0;
}

.gantt-grid {
    width: 400px;
}

.gantt-resizer {
    width: 1px;
}

.gantt-resizer > .gantt-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 11px;
    margin-left: -5px;
    cursor: e-resize;
}

.gantt-task {
    width: calc(100% - 401px);
}

.gantt-row {
    min-height: 32px;
}

.gantt-cell {
    display: inline-block;
    vertical-align: top;
    font-size: 12px;
    padding: 6px 8px;
    min-width: 32px;
    min-height: 32px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gantt-header .gantt-cell {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gantt-grid .gantt-cell {
    overflow: hidden;
}

.gantt-task .gantt-cell {
    z-index: 1;
    text-align: center;
}

.gantt-x-scroll,
.gantt-y-scroll {
    position: absolute;
    z-index: 20;
}

.gantt-x-scroll {
    height: auto;
    bottom: 0;
    left: 0;
    right: 0;
}

.gantt-x-scroll > .gantt-wrapper {
    position: relative;
    height: 8px;
    overflow: hidden;
    overflow-x: auto;
}

.gantt-x-scroll > .gantt-wrapper .gantt-content {
    height: 8px;
}

.gantt-y-scroll {
    width: auto;
    top: 0;
    bottom: 0;
    right: 0;
}

.gantt-y-scroll > .gantt-wrapper {
    position: relative;
    width: 8px;
    overflow: hidden;
    overflow-y: auto;
}
.gantt-y-scroll > .gantt-wrapper .gantt-content {
    width: 8px;
}

.gantt-loader {
    position: absolute;
    z-index: 21;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #fff;
    background-color: rgba(0, 0, 0, .2);
}

.gantt-loader .gantt-loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin-left: -13px;
    margin-top: -13px;
    border: 2px solid #fff;
    border-top-color: rgba(0, 0, 0, .2);
    border-right-color: rgba(0, 0, 0, .2);
    border-bottom-color: rgba(0, 0, 0, .2);
    border-radius: 100%;
    -webkit-animation: circle infinite .9s linear;
    -moz-animation: circle infinite .9s linear;
    -o-animation: circle infinite .9s linear;
    animation: circle infinite .9s linear;
}
@-webkit-keyframes circle {
    0% {
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        -o-transform: rotate(0);
        transform: rotate(0)
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}
@-moz-keyframes circle {
    0% {
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        -o-transform: rotate(0);
        transform: rotate(0)
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}
@-o-keyframes circle {
    0% {
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        -o-transform: rotate(0);
        transform: rotate(0)
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}
@keyframes circle {
    0% {
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        -o-transform: rotate(0);
        transform: rotate(0)
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}
/* ------------------------------------------------------------
    Color
------------------------------------------------------------ */

.gantt-layout {
    border: 1px solid #cecece;
}

.gantt-resizer {
    background-color: #cecece;
}

.gantt-cell {
    border-bottom: 1px solid #cecece;
}

.gantt-cell + .gantt-cell {
    border-left: 1px solid #cecece;
}

.gantt-header .gantt-cell {
    color: #a6a6a6;
}

.gantt-task .gantt-data .gantt-cell {
    border-color: #ebebeb;
}

.gantt-x-scroll,
.gantt-y-scroll {
    background-color: #fff;
}

.gantt-x-scroll > .gantt-wrapper {
    background-color: #e2e2e2;
}

/* ------------------------------------------------------------
    Gantt Scrollbar Style
------------------------------------------------------------ */
.gantt-layout ::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

.gantt-layout ::-webkit-scrollbar-button:vertical {
    display: none
}

.gantt-layout ::-webkit-scrollbar-corner,
.gantt-layout ::-webkit-scrollbar-track {
    background-color: #e2e2e2
}

.gantt-layout ::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: rgba(0, 0, 0, .3)
}

.gantt-layout ::-webkit-scrollbar-thumb:vertical:hover {
    background-color: rgba(0, 0, 0, .35)
}

.gantt-layout ::-webkit-scrollbar-thumb:vertical:active {
    background-color: rgba(0, 0, 0, .38)
}